package com.dayuanit.dy16.atm.boatm.mapper;

import com.dayuanit.dy16.atm.boatm.entity.SalaryDetail;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SalaryDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SalaryDetail record);

    int insertSelective(SalaryDetail record);

    SalaryDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SalaryDetail record);

    int updateByPrimaryKey(SalaryDetail record);

    int batchSaveSalary(@Param("detailList") List<SalaryDetail> detailList);

    List<SalaryDetail> listBySalaryId(Long salaryId);

    int updateStatus(@Param("detailId") Long detailId, @Param("oldStatus") Integer oldStatus, @Param("newStatus") Integer newStatus);
}